﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.PersonVMs
{
    public partial class PersonTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Person._PersonCode")]
        public ExcelPropety PersonCode_Excel = ExcelPropety.CreateProperty<Person>(x => x.PersonCode);
        [Display(Name = "_Model._Person._PersonName")]
        public ExcelPropety PersonName_Excel = ExcelPropety.CreateProperty<Person>(x => x.PersonName);
        [Display(Name = "_Model._Person._PhoneNumber")]
        public ExcelPropety PhoneNumber_Excel = ExcelPropety.CreateProperty<Person>(x => x.PhoneNumber);
        [Display(Name = "_Model._Person._Gender")]
        public ExcelPropety Gender_Excel = ExcelPropety.CreateProperty<Person>(x => x.Gender);
        [Display(Name = "_Model._Person._Address")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<Person>(x => x.Address);
        [Display(Name = "_Model._Person._EmpSkills")]
        public ExcelPropety EmpSkills_Excel = ExcelPropety.CreateProperty<Person>(x => x.EmpSkills);
        [Display(Name = "_Model._Person._StationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<Person>(x => x.StationCode);
        [Display(Name = "_Model._Person._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<Person>(x => x.LineCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class PersonImportVM : BaseImportVM<PersonTemplateVM, Person>
    {
            //import

    }

}